package org.example.nettyrpc.common;

import java.io.Serializable;
import java.util.Arrays;

public class RequestArgs implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long seq;
    private String method;
    private Object[] parameters;


    public Long getSeq() {
        return seq;
    }

    public void setSeq(Long seq) {
        this.seq = seq;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Object[] getParameters() {
        return parameters;
    }

    public void setParameters(Object[] parameters) {
        this.parameters = parameters;
    }

    @Override
    public String toString() {
        return "RequestArgs{" +
                "seq=" + seq +
                ", method='" + method + '\'' +
                ", parameters=" + Arrays.toString(parameters) +
                '}';
    }
}
